﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProjectCore.Domain.Model.Entity
{
    public class Product
    {
        [Key]
        public int ProID { get; set; }//主键ID

        [StringLength(200)]
        public string ProName { get; set; }//商品名称

        public int TypeID { get; set; }//分类外键

        public int Photo { get; set; }//图片外键

        public int Sales { get; set; }//实际销量

        public int Sort { get; set; }//排序

        public int State { get; set; }//状态

        public DateTime CreateTime { get; set; }//创建时间

        [StringLength(200)]
        public string Info { get; set; }//内容

        public int DeleteMark { get; set; }//删除标记

        [StringLength(200)]
        public string Spare { get; set; }//备份字段
        [NotMapped]
        public bool IsDeleted { get; set; }
    }
}
